/*
 * Template Name: 极夜影廊 (Polar Night Gallery)
 * Author: Manus AI
 * CSS Prefix: pn-
 * Description: 极简暗黑风，大量留白(留黑)，金色点缀高亮，奢华画廊感。
 */

/* === 全局与基础样式 === */
body {
    background-color: #0a0a0a;
    color: #CCCCCC;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pn-main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pn-section-title {
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* === 头部 & 抽屉式导航 === */
.pn-header {
    background-color: #000000;
    position: sticky; top: 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.pn-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 60px;
}

.pn-hamburger {
    cursor: pointer;
    z-index: 1002;
}

.pn-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.pn-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.pn-logo img {
    height: 40px;
}

.pn-drawer {
    position: sticky; top: 0;
    top: 0;
    left: -300px; /* 默认收起 */
    width: 300px;
    height: 100%;
    background-color: #000000;
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 80px;
    overflow-y: auto;
}

.pn-drawer.is-open {
    left: 0;
}

.pn-search-form-container {
    padding: 20px;
}

.pn-search-form {
    display: flex;
}

.pn-search-input {
    flex-grow: 1;
    background: #222;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px;
    border-radius: 3px 0 0 3px;
}

.pn-search-button {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

.pn-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pn-nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 1.1em;
    border-bottom: 1px solid #222;
}

.pn-nav-link:hover {
    background-color: #111;
}

/* === 首页: 单列大图流 === */
.pn-home-main {
    padding-top: 60px; /* 避开固定头部 */
}

.pn-hero-stream {
    width: 100%;
}

.pn-hero-item {
    position: relative;
    width: 100%;
    height: 60vh; /* 每屏一个 */
    overflow: hidden;
    margin-bottom: 40px;
}

.pn-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pn-hero-item:hover .pn-hero-image {
    transform: scale(1.05);
}

.pn-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    padding: 40px;
    box-sizing: border-box;
}

.pn-hero-title {
    font-size: 3em;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.pn-hero-info {
    font-size: 1.2em;
    color: #ccc;
}

/* === 列表页: 双列大图卡片 === */
.pn-list-main {
    padding-top: 80px;
}

.pn-breadcrumb {
    margin-bottom: 20px;
    color: #888;
}

.pn-breadcrumb a {
    color: #aaa;
}

.pn-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.pn-list-title {
    font-size: 2.5em;
    color: #FFD700;
}

.pn-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.pn-grid-list-listpage {
    grid-template-columns: repeat(2, 1fr);
}

.pn-grid-item {
    background: #111;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pn-grid-item:hover {
    border-color: #FFD700;
}

.pn-grid-item-image-container {
    height: 80%;
    overflow: hidden;
}

.pn-grid-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pn-grid-item:hover .pn-grid-item-image {
    transform: scale(1.1);
}

.pn-grid-item-info {
    padding: 15px;
    height: 20%;
}

.pn-grid-item-title {
    font-size: 1.1em;
    margin: 0;
    color: #fff;
}

.pn-pagination {
    text-align: center;
    margin-top: 40px;
}

.pn-pagination a, .pn-pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #333;
    color: #ccc;
}

.pn-pagination a:hover, .pn-pagination span.current {
    background-color: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* === 内容页: 画廊式排版 === */
.pn-show-main {
    padding-top: 80px;
}

.pn-article-header {
    text-align: center;
    margin-bottom: 30px;
}

.pn-article-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 10px;
}

.pn-article-meta {
    color: #888;
    font-size: 0.9em;
}

.pn-article-meta span {
    margin: 0 10px;
}

.pn-featured-image-container {
    width: 100%;
    margin-bottom: 30px;
}

.pn-article-body {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.pn-prev-next-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

/* === 相关推荐 & 侧边栏 === */
.pn-related-posts .pn-grid-list-related {
    grid-template-columns: repeat(4, 1fr);
}

.pn-sidebar .pn-widget {
    background: #111;
    padding: 20px;
    margin-bottom: 20px;
}

.pn-sidebar .pn-widget-title {
    font-size: 1.2em;
    color: #FFD700;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.pn-sidebar .pn-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pn-sidebar .pn-widget-list li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

/* === 底部 === */
.pn-footer {
    background-color: #000000;
    color: #888;
    padding: 40px 20px;
    margin-top: 40px;
}

.pn-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pn-footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.pn-link-title {
    color: #FFD700;
    font-size: 1.2em;
}

.pn-link-list {
    list-style: none;
    padding: 0;
}

.pn-link-list li a {
    color: #888;
}

.pn-link-list li a:hover {
    color: #FFD700;
}

.pn-footer-info p {
    margin: 5px 0;
}

.pn-stats-codes {
    display: none; /* 隐藏统计代码 */
}


/* ========== 差异化特效 ========== */
/*
 * 极夜影廊 (pn-) 模板专属特效
 * 风格: 纯黑金色奢华系
 */

/* Keyframes 动画 */

/* 1. 极光波动效果 */
@keyframes pn-aurora-wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 2. 暗夜辉光渐隐动画 */
@keyframes pn-fade-glow {
  0%, 100% {
    text-shadow: 0 0 8px #ffd700, 0 0 16px #ffd700, 0 0 24px #b8860b;
    opacity: 0.7;
  }
  50% {
    text-shadow: 0 0 12px #fff, 0 0 24px #ffd700, 0 0 36px #b8860b;
    opacity: 1;
  }
}

/* 3. 聚光灯扫过效果 */
@keyframes pn-spotlight {
  0% {
    clip-path: ellipse(100px 100px at -10% 50%);
  }
  50% {
    clip-path: ellipse(100px 100px at 50% 50%);
  }
  100% {
    clip-path: ellipse(100px 100px at 110% 50%);
  }
}

/* 页面主要元素过渡效果增强 */
.pn-card, .pn-btn, .pn-nav-link, .pn-image, .pn-main-title {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover & Transition 效果 */

/* 1. 卡片hover暗金边框发光 */
.pn-card {
  border: 1px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pn-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* 2. 图片hover暗角与缩放 */
.pn-image-container {
  overflow: hidden;
  position: relative;
}

.pn-image-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pn-image-container:hover::after {
  opacity: 1;
}

.pn-image-container .pn-image {
  display: block;
  width: 100%;
}

.pn-image-container:hover .pn-image {
  transform: scale(1.1);
}

/* 3. 按钮hover流光效果 */
.pn-btn {
  background: linear-gradient(45deg, #b8860b, #ffd700, #b8860b);
  color: #1a1a1a;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: 200% auto;
}

.pn-btn:hover {
  background-position: right center; /* change the direction of the change here */
  color: #000;
}

/* 4. 导航链接hover下划线从中心展开 */
.pn-nav-link {
  position: relative;
  text-decoration: none;
  color: #ccc;
  padding: 5px 0;
}

.pn-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.4s ease;
}

.pn-nav-link:hover {
  color: #fff;
}

.pn-nav-link:hover::after {
  width: 100%;
}

/* 5. 标题hover辉光增强 */
.pn-main-title {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.pn-main-title:hover {
  animation: pn-fade-glow 2s infinite alternate;
}

/* 6. 应用聚光灯动画的示例 */
.pn-featured-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: brightness(1.5);
    animation: pn-spotlight 5s infinite linear;
}
